home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / programming / aros / make.cfg < prev    next >
Text File  |  1996-09-12  |  1KB  |  49 lines

  1. # The next line will generate an error but that's ok
  2. include $(TOP)/host.cfg
  3.  
  4. VERSION=18
  5. CURDIR=.
  6. CFLAGS=$(COMMON_CFLAGS) $(SPECIAL_CFLAGS) \
  7.     -I $(TOP)/$(KERNEL) -I $(TOP)/include -I $(TOP)/amiga/include
  8. AFLAGS=$(COMMON_AFLAGS) $(SPECIAL_AFLAGS)
  9. RM=rm -rf
  10. CP=cp -r
  11. MV=mv -f
  12. MKDIR=mkdir
  13. TOUCH=touch
  14. AR=ar r
  15.  
  16. PURIFY=$(TOP)/purify
  17.  
  18. CC=$(SYS_CC)
  19. AS=$(SYS_AS)
  20.  
  21. # Comment this line out to purify the source
  22. #CC=$(PURIFY) $(SYS_CC)
  23. #AS=$(PURIFY) $(SYS_AS)
  24.  
  25. # BINDIR is NOT the place where the executables are stored but where the
  26. # resulting binary files for a certain architecture are places. Exes are
  27. # in EXEDIR
  28. ARCHDIR=$(TOP)/bin/$(ARCH)
  29.  
  30. # Compute depending paths
  31. BINDIR=$(ARCHDIR)/AROS
  32. EXEDIR=$(BINDIR)/c
  33. SDIR=$(BINDIR)/s
  34. LIBDIR=$(BINDIR)/lib
  35. DEVSDIR=$(BINDIR)/devs
  36. SLIBDIR=$(BINDIR)/libs
  37.  
  38. # Generated files which are not distributed
  39. GENDIR=$(ARCHDIR)/gen
  40. OSGENDIR=$(GENDIR)/os
  41.  
  42. # This is the first rule that is read by any makefile
  43. first_rule : $(TOP)/host.cfg all
  44.  
  45. # Generate $(TOP)/host.cfg if it doesn't exist yet. GNU make will reread
  46. # the makefile afterwards
  47. $(TOP)/host.cfg : $(TOP)/configure
  48.     sh $(TOP)/configure $(TOP)/host.cfg
  49.